import request2 from '@/api/axios2';

/**
 * 添加公式
 * @param {*} data 
 * @returns 
 */
const save = (data) =>{
    return request2({
        url: '/FormulaConfiguration/save',
        method: 'post',
        data
    })
}

/**
 * 编辑公式
 * @param {*} data 
 * @returns 
 */
const update = (data) =>{
    return request2({
        url: '/FormulaConfiguration/update',
        method: 'post',
        data
    })
}

/**
 * 
 * @param {*} data 
 * @returns 
 */
const del = (params) =>{
    return request2({
        url: '/FormulaConfiguration/delete',
        method: 'post',
        params
    })
}
/**
 * 查询公式列表
 * @param {*} params 
 * @returns 
 */
const selectA = (params) =>{
    return request2({
        url: '/FormulaConfiguration/select/a',
        method: 'post',
        params
    })
}

/**
 * 查询公式
 * @param {*} params 
 * @returns 
 */
const getOne = (params)=>{
    return request2({
        url: '/FormulaConfiguration/select/getOne',
        method: 'post',
        params
    })
}

export{
    save,
    del,
    update,
    getOne,
    selectA
}